<h3>今日新闻<small>列表</small>
</h3>
<div class="panel panel-default" ng-controller="NewsDictController" >
    <div ng-controller="FormDemoCtrl" class="panel-body">
        <form form-wizard="" steps="4" novalidate="" ng-submit="alertSubmit()">
            <div class="form-wizard wizard-horizontal">
                <!-- START Wizard Step inputs -->
                <div ng-show="wizard.active(1)">
                    <fieldset>
                        <legend>查询条件</legend>
                        <!-- START row -->
                        <div class="row">
                            <div class="col-md-4">
                                <div class="form-group">
                                    <label>网站</label>
                                    <div class="controls">
                                        <input type="text" name="todayNewsModel.news_basic_net_name" ng-model="todayNewsModel.news_basic_net_name" placeholder="Your nick here" class="form-control" />
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4">
                                <div class="form-group">
                                    <label>标题</label>
                                    <div class="controls">
                                        <input type="text" name="todayNewsModel.a_text" ng-model="todayNewsModel.a_text" placeholder="Your password" class="form-control" />
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4">
                                <div class="form-group">
                                    <label>修改时间</label>
                                    <div class="controls">
                                        <input type="text" name="todayNewsModel.update_time" ng-model="todayNewsModel.update_time" placeholder="Confirmed password" class="form-control" />
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!-- END row -->
                    </fieldset>
                    <ul class="pager">
                        <li class="next" tooltip-placement="left"><a href="#"  ng-click="addDict()">新增</a></li>
                        <li class="next"><a href="#" ng-click="checkTodayNews()">查询</a></li>
                    </ul>
                </div>
                <!-- END Wizard Step inputs -->
            </div>
        </form>
    </div>

    <!--<div class="panel panel-default">-->
    <div >

        <div class="panel-heading">
            <legend></legend>
        </div>
        <div class="panel-body">
            <div >
                <table datatable="ng" class="row-border hover">
                    <thead>
                    <tr>
                        <th>序号</th>
                        <th>网站</th>
                        <th>网址</th>
                        <th>编码</th>
                        <!--<th>标题链接</th>-->
                        <th>可用</th>
                        <th>修改时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="dict in dictInfo">
                        <th scope=row> {{$index + 1 }}  </th>
                        <td>{{ dict.net }}</td>
                        <td>{{ dict.url }}</td>
                        <td>{{ dict.code }}</td>
                        <!--<td>{{ news.a_url }}</td>-->
                        <td>{{ dict.flag }}</td>
                        <td>{{ dict.update_time }}</td>
                        <td style="white-space: nowrap">
                            <div  class="buttons">
                                <button ng-click="editDict(dict)" title="Edit" class="btn btn-sm btn-info">
                                    <em class="fa fa-pencil"></em>
                                </button>
                                <button ng-click="delDict(dict)" title="Delete" class="btn btn-sm btn-danger">
                                    <em class="fa fa-trash"></em>
                                </button>
                            </div>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>


</div>

<script type="text/ng-template" id="addNewsDict.html">
    <!--<div ng-controller="addNewsDictCtrl" id="">-->
    <div class="modal-header">
        <button type="button" data-dismiss="modal" aria-hidden="true" class="close">×</button>
        <h4 id="myModalLabel" class="modal-title">新增网站字典</h4>
    </div>
    <div class="modal-body">
        <div class="form-horizontal">
            <div class="form-group">
                <label class="col-lg-2 control-label">网站</label>
                <div class="col-lg-8">
                    <input type="text"  ng-model="dictNews.net" placeholder="网站" class="form-control" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-2 control-label">网址</label>
                <div class="col-lg-8">
                    <input type="text" ng-model="dictNews.url" placeholder="网址" class="form-control" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-2 control-label">编码</label>
                <div class="col-lg-8">
                    <input type="text" ng-model="dictNews.code" placeholder="编码" class="form-control" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-2 control-label">有效</label>
                <div class="col-lg-8">
                    <input type="text" ng-model="dictNews.flag" placeholder="有效" class="form-control" />
                </div>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button ng-click="saveDictNews(dictNews)" class="btn btn-primary">OK</button>
        <button ng-click="cancel()" class="btn btn-warning">Cancel</button>
    </div>
<!--</div>-->
</script>